package com.wjjun.test.ui.viewmodel

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.wjjun.app.R
import com.wjjun.base.ui.viewmodel.BaseActivityViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class TestBleViewModel @Inject constructor() : BaseActivityViewModel() {

    val output = MutableLiveData<String>("")

    val logs = StringBuilder()

    override fun getLayoutId(): Int {
        return R.layout.activity_test_ble
    }

    fun appendLog(log:String){
        logs.append(log)
        logs.append("\n")
        output.value = logs.toString()
    }
}